/**
 * @author zhu
 * @date 2024-03-12
 */
public class Consumer {
    public void spend(Payment payment){
        payment.pay();
    }

    public static void main(String[] args) {
        Payment payment = new Alipay();
        Consumer consumer = new Consumer();
        consumer.spend(payment);
    }
}
